package cz.najman.emdroid.listener;

import java.util.Date;

import android.util.Log;

/**
 * Provides an empty implementation of OnDataUpdatedListener
 * @author Lukáš Najman
 *
 */
public class DefaultOnDataUpdatedListener extends AbstractOnDataUpdatedListener {

	private Date mStartDate;
	private Date mEndDate;
	private static final String TAG = "DefaultOnDataUpdatedListener";
	
	@Override
	protected void onRunning(Class objectClass) {
		mStartDate = new Date();
		Log.d(TAG, "> onRunning");		
	}

	@Override
	protected void onFinished(Class objectClass) {
		Log.d(TAG, "> onFinished");
		mEndDate = new Date();
		//long time = (mEndDate.getTime() - mStartDate.getTime());
		//Log.d(TAG, "> onFinished | Update took: " + time + " ms");		
	}

	@Override
	protected void onError(Class objectClass) {
		Log.d(TAG, "> onError");		
	}

	
	
	

}
